$(function(){
    loginName=baseFunction.getUrlParameterValueByKey("loginName");
    orderno=baseFunction.getUrlParameterValueByKey("orderno");
    takeCashAmount=baseFunction.getUrlParameterValueByKey("takeCashAmount");
    arrivalAmount=baseFunction.getUrlParameterValueByKey("arrivalAmount");
    creditCard=baseFunction.getUrlParameterValueByKey("creditCard");
    savingsCard=baseFunction.getUrlParameterValueByKey("savingsCard");
    $(".btn").on("click",function(){
        var data={
        userName: baseFunction.encryption(loginName),
        validCode: baseFunction.encryption(code),
        orderno: baseFunction.encryption(orderno),
        };
        baseFunction.netRequest("quickConfirm",data,function(res){
            
            console.log(res);
            // 提示
            $(".prompt").html(res.message).show(0).delay(1000).hide(0);
            if(res==200){ //验证成功
                setTimeout(function(){
                    window.location.href='index_takeCashSuccess.html?orderno=' +orderno + '&takeCashAmount=' + takeCashAmount + '&arrivalAmount=' + arrivalAmount + '&creditCard=' + creditCard + '&savingsCard=' + savingsCard +''
                },1000);
            }
        })
    })
})